package com.slipper.sfts.stock;

import com.slipper.common.util.ResultUtil;
import com.slipper.sfts.api.stock.bo.StockPositionBO;
import com.slipper.sfts.api.stock.service.IStockPositionSv;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/stockPosition")
public class StockPositionController {
    @Resource
    private IStockPositionSv stockPositionSv;

    @PostMapping(value = "/queryPage")
    public String queryPage(@RequestBody StockPositionBO bo) {
        return ResultUtil.toJson(stockPositionSv.queryPage(bo));
    }
}
